package com.example.addemoone.bean

data class BaseResponse<T> (
    val code: Int,
    val message: String,
    val data: T
)

data class Channel (
    val id: Int,
    val name: String
)

data class ChannelData (
    val channels: List<Channel>
)

typealias ChannelResponse = BaseResponse<ChannelData>

data class LoginRequest (
    val username: String,
    val password: String
)

 data class LoginData (
    val token: String
)

typealias LoginResponse = BaseResponse<LoginData>